def test_getid_no_id(self): x = None ret = manager.getid(x) self.assertEqual(ret, x)
def test_getid_ok(self): # The class really doesn't matter x = fakes.FakeException() x.id = "TEST" ret = manager.getid(x) self.assertEqual(ret, x.id)