def test_reason_is_not_unknown(self): for code in self.known_codes: with self.subTest(code=code): result = groups.ChangeOwnersResult('foo', 'bar', code) self.assertNotEqual(result.reason, 'unknown')
def setUp(self): self.result = groups.ChangeOwnersResult('foo', 'bar', '419')
def test_is_falsey(self): for code in self.known_codes: with self.subTest(code=code): result = groups.ChangeOwnersResult('foo', 'bar', code) self.assertFalse(result)