def test_simpleStats(self): """ Various setter and getter tests. """ stats = Stats() stats.test = 1 self.assertEqual(stats.test, 1) self.assertEqual(stats['test'], 1) stats['test2'] = 2 self.assertEqual(stats.test2, 2) self.assertEqual(stats['test2'], 2) stats['test'] = 2 self.assertEqual(stats.test, 2) self.assertEqual(stats['test'], 2) stats.test2 = 1 self.assertEqual(stats.test2, 1) self.assertEqual(stats['test2'], 1)
def test_simpleStats(self): """ Various setter and getter tests. """ stats = Stats() stats.test = 1 self.assertEqual(stats.test, 1) self.assertEqual(stats['test'], 1) stats['test2'] = 2 self.assertEqual(stats.test2, 2) self.assertEqual(stats['test2'], 2) stats['test'] = 2 self.assertEqual(stats.test, 2) self.assertEqual(stats['test'], 2) stats.test2 = 1 self.assertEqual(stats.test2, 1) self.assertEqual(stats['test2'], 1)
def test_simple_stats(self): """ Various setter and getter tests. """ stats = Stats() stats.test = 1 assert stats.test == 1 assert stats['test'] == 1 stats['test2'] = 2 assert stats.test2 == 2 assert stats['test2'] == 2 stats['test'] = 2 assert stats.test == 2 assert stats['test'] == 2 stats.test2 = 1 assert stats.test2 == 1 assert stats['test2'] == 1