def test_check(self): self.attempt.last_guess = 'ChariZArD' self.attempt.last_poke_id = 6 self.attempt.save() self.assertTrue(check(self.attempt)) self.attempt.last_poke_id = 7 self.attempt.save() self.assertFalse(check(self.attempt))