Skip to content

Commit

Permalink
Add open test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mlouielu committed Jul 2, 2017
1 parent f446a54 commit a17540b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ def test_low(self):
self.assertEqual(len(self.stk.low), len(self.stk.data))
self.assertEqual(self.stk.low, [d.low for d in self.stk.data])

def test_open(self):
self.assertIsInstance(self.stk.open, list)
self.assertEqual(len(self.stk.open), len(self.stk.data))
self.assertEqual(self.stk.open, [d.open for d in self.stk.data])

def test_capacity(self):
self.assertIsInstance(self.stk.capacity, list)
self.assertEqual(len(self.stk.capacity), len(self.stk.data))
Expand Down Expand Up @@ -107,6 +112,11 @@ def test_low(self):
self.assertEqual(len(self.stk.low), len(self.stk.data))
self.assertEqual(self.stk.low, [d.low for d in self.stk.data])

def test_open(self):
self.assertIsInstance(self.stk.open, list)
self.assertEqual(len(self.stk.open), len(self.stk.data))
self.assertEqual(self.stk.open, [d.open for d in self.stk.data])

def test_capacity(self):
self.assertIsInstance(self.stk.capacity, list)
self.assertEqual(len(self.stk.capacity), len(self.stk.data))
Expand Down

0 comments on commit a17540b

Please sign in to comment.