Exemplo n.º 1
0
 def test_saveSheet(self):
     self.fakeDict[main.INIT] = 'testing'
     main.saveSheet(td.fakeSheet, self.fakeDict)
     self.assertEqual(main.readSheet(td.fakeSheet), self.fakeDict)
Exemplo n.º 2
0
 def test_resetSheet(self):
     self.assertEqual(main.readSheet(td.fakeSheet), self.fakeDict)
     main.resetSheet(td.fakeSheet)
     self.assertEqual(main.readSheet(td.fakeSheet), td.fakeDict(0, 0))
Exemplo n.º 3
0
 def test_saveSheet(self):
     self.fakeDict[main.INIT] = 'testing'
     main.saveSheet(td.fakeSheet, self.fakeDict)
     self.assertEqual(main.readSheet(td.fakeSheet), self.fakeDict)
Exemplo n.º 4
0
 def test_newSheet(self):
     main.newSheet(td.fakeSheet, self.fakeDict)
     self.assertEqual(main.readSheet(td.fakeSheet), self.fakeDict)
Exemplo n.º 5
0
 def test_readSheet(self):
     self.assertEqual(main.readSheet(td.fakeSheet), self.fakeDict)
Exemplo n.º 6
0
 def test_newSheet(self):
     main.newSheet(td.fakeSheet, self.fakeDict)
     self.assertEqual(main.readSheet(td.fakeSheet), self.fakeDict)
Exemplo n.º 7
0
 def test_update(self):
     d = main.timestamp(date.today() + timedelta(days=1))
     self.fakeDict[d] = [str(self.bal)]
     main.update(td.fakeSheet, d, self.bal)
     self.assertEqual(main.readSheet(td.fakeSheet), self.fakeDict)