예제 #1
0
 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')
예제 #2
0
 def setUp(self):
     self.result = groups.ChangeOwnersResult('foo', 'bar', '419')
예제 #3
0
 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)