mirror of
https://github.com/captn3m0/hackertray.git
synced 2024-09-20 15:57:05 +00:00
0586db9d72
- Restructures unit tests - Shifts to nose for unit testing - Adds a sample history file with 6 entries to search against as well
11 lines
234 B
Python
11 lines
234 B
Python
import unittest
|
|
from hackertray import HackerNews
|
|
|
|
class HNTest(unittest.TestCase):
|
|
def runTest(self):
|
|
data = HackerNews.getHomePage()
|
|
self.assertTrue(len(data) > 0)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main() |