Example #1
0
 def _callFUT(self, arg):
     return datatypes.name_to_gid(arg)
Example #2
0
 def test_name_to_gid_gets_gid_from_group_id(self):
     gid = datatypes.name_to_gid("42")
     self.assertEquals(gid, 42)
Example #3
0
 def test_name_to_gid_gets_gid_from_group_id(self):
     gid = datatypes.name_to_gid("42")
     self.assertEqual(gid, 42)
Example #4
0
 def _callFUT(self, arg):
     return datatypes.name_to_gid(arg)
Example #5
0
 def test_name_to_gid_gets_gid_from_group_name(self):
     gid = datatypes.name_to_gid("foo")
     self.assertEquals(gid, 42)
Example #6
0
 def test_name_to_gid_gets_gid_from_group_name(self):
     gid = datatypes.name_to_gid("foo")
     self.assertEqual(gid, 42)