def test_right_index(self): self.assertIsNotNone( readfile("files/bollinger_bitcoin_dec2017.txt", 32, 32))
def test_right_period(self): self.assertIsNotNone( readfile("files/bollinger_bitcoin_dec2017.txt", 20, 5))
def test_to_much_period(self): self.assertIsNone(readfile("files/bollinger_test.txt", 0, 5000))
def test_wrong_period(self): self.assertIsNone(readfile("files/bollinger_test.txt", 0, -1))
def test_to_much_index(self): self.assertIsNone(readfile("files/bollinger_test.txt", 5000, 10))
def test_wrong_index(self): self.assertIsNone(readfile("files/bollinger_test.txt", -1, 10))
def test_wrong_file(self): self.assertIsNone(readfile("some file", 0, 10))