Пример #1
0
 def test_right_index(self):
     self.assertIsNotNone(
         readfile("files/bollinger_bitcoin_dec2017.txt", 32, 32))
Пример #2
0
 def test_right_period(self):
     self.assertIsNotNone(
         readfile("files/bollinger_bitcoin_dec2017.txt", 20, 5))
Пример #3
0
 def test_to_much_period(self):
     self.assertIsNone(readfile("files/bollinger_test.txt", 0, 5000))
Пример #4
0
 def test_wrong_period(self):
     self.assertIsNone(readfile("files/bollinger_test.txt", 0, -1))
Пример #5
0
 def test_to_much_index(self):
     self.assertIsNone(readfile("files/bollinger_test.txt", 5000, 10))
Пример #6
0
 def test_wrong_index(self):
     self.assertIsNone(readfile("files/bollinger_test.txt", -1, 10))
Пример #7
0
 def test_wrong_file(self):
     self.assertIsNone(readfile("some file", 0, 10))