

def test_loaded(self):
    'Check whether the attributes we imported match the JSON contents'
    person = Person.query((Person.first_name == 'John')).get()
    self.assertEqual(person.first_name, 'John')
    self.assertEqual(person.last_name, 'Doe')
    self.assertEqual(person.born, datetime.datetime(1968, 3, 3))
    self.assertEqual(person.thermostat_set_to, 18.34)
    self.assertFalse(self.processed)
    person = Person.query(((Person.last_name == 'Schneier') and (Person.first_name == 'Alice'))).get()
    self.assertEqual(person.first_name, 'Alice')
    self.assertEqual(person.last_name, 'Schneier')
    self.assertEqual(person.born, datetime.datetime(1999, 9, 19))
    self.assertTrue(person.snores)
    self.assertFalse(person.processed)
    person = Person.query((Person.born == datetime.datetime(1980, 5, 25, 0, 0, 0))).get()
    self.assertEqual(person.first_name, 'Bob')
    self.assertEqual(person.last_name, 'Schneier')
    self.assertEqual(person.born, datetime.datetime(1980, 5, 25))
    self.assertFalse(person.processed)

dataset/ETHPy150Open rbanffy/testable_appengine/tests/sanity_test.py LoaderTest.test_loaded/VarMisuse@88/129 `person`->`self`