def test_file_contents(self): file = "/Users/johnlingi/Desktop/Glen.txt" self.assertEqual(KindleHighlightsExtractor.extract_highlights(file), -1)
import unittest import KindleHighlightsExtractor test_highlights = KindleHighlightsExtractor.extract_highlights("AmazonClippings_simpletest.txt") testKD = KindleHighlightsExtractor.KindleDictionary(test_highlights) class KindleHighlightsExtractor_test(unittest.TestCase): def test_file_contents(self): file = "/Users/johnlingi/Desktop/Glen.txt" self.assertEqual(KindleHighlightsExtractor.extract_highlights(file), -1) def test_booklist(self): self.assertEquals(testKD.booklist, ["let's go"]) def test_authorlist(self): self.assertEquals(testKD.authorlist, ["unknown"])