You can use self.assertEqual(last_note['status'], status)