Пример #1
0
 def test_add_keyword(self):
     """Test Add Keyword"""
     ebuild = self.get_ebuild()
     ebuild.add_keyword('amd64', True)
     ebuild.add_keyword('arm64', False)
     amd64_stable = ebuild_keyword('amd64', True)
     arm64_unstable = ebuild_keyword('arm64', False)
     self.assertTrue(amd64_stable in ebuild.keys)
     self.assertTrue(arm64_unstable in ebuild.keys)
Пример #2
0
 def test_ebuild_keyword_stable(self):
     """Test Stable Keyword"""
     keyword = ebuild_keyword('amd64', True)
     self.assertEqual(keyword.to_string(), 'amd64')
Пример #3
0
 def test_ebuild_keyword_unstable(self):
     """Test Unstable Keyword"""
     keyword = ebuild_keyword('amd64', False)
     self.assertEqual(keyword.to_string(), '~amd64')