diff --git a/bindep/tests/fixtures/debiansid/etc/os-release b/bindep/tests/fixtures/debiansid/etc/os-release new file mode 100644 index 0000000..c6a2166 --- /dev/null +++ b/bindep/tests/fixtures/debiansid/etc/os-release @@ -0,0 +1,7 @@ +PRETTY_NAME="Debian GNU/Linux xyzzy/sid" +NAME="Debian GNU/Linux" +VERSION_CODENAME=xyzzy +ID=debian +HOME_URL="https://www.debian.org/" +SUPPORT_URL="https://www.debian.org/support" +BUG_REPORT_URL="https://bugs.debian.org/" diff --git a/bindep/tests/test_depends.py b/bindep/tests/test_depends.py index bb683c6..71dd68d 100644 --- a/bindep/tests/test_depends.py +++ b/bindep/tests/test_depends.py @@ -266,6 +266,15 @@ class TestDepends(TestCase): self.assertThat( depends.platform_profiles(), Contains("platform:rpm")) + def test_detects_debian_sid(self): + with DistroFixture("DebianSid"): + depends = Depends("") + self.assertThat( + depends.platform_profiles(), Contains("platform:debian")) + self.assertThat( + depends.platform_profiles(), + Contains("platform:debian-xyzzy")) + def test_detects_release(self): with DistroFixture("Ubuntu"): depends = Depends("")