예제 #1
0
 def test_releasever_7server(self):
     self.assertTrue(YumReleaseverSource.is_set({'releaseVer': '7Server'}))
예제 #2
0
 def test_releasever_the_string_none(self):
     # you laugh, but someone thinks that would be an awesome product name.
     self.assertTrue(YumReleaseverSource.is_set({'releaseVer': 'None'}))
예제 #3
0
 def test_releasever_zero(self):
     self.assertFalse(YumReleaseverSource.is_set({'releaseVer': 0}))
예제 #4
0
 def test_releasever_none(self):
     self.assertFalse(YumReleaseverSource.is_set({'releaseVer': None}))
예제 #5
0
 def test_not_a_dict(self):
     self.assertFalse(YumReleaseverSource.is_set(['some string']))
예제 #6
0
 def test_key_error(self):
     self.assertFalse(YumReleaseverSource.is_set({'not_release_ver': 'blippy'}))
예제 #7
0
 def test_none(self):
     self.assertFalse(YumReleaseverSource.is_set(None))
 def test_releasever_7server(self):
     self.assertTrue(YumReleaseverSource.is_set({"releaseVer": "7Server"}))
 def test_key_error(self):
     self.assertFalse(YumReleaseverSource.is_set({"not_release_ver": "blippy"}))