Skip to content

Commit

Permalink
Fixed travis config and finishing test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
EntilZha committed Mar 22, 2015
1 parent 2d66839 commit 99aa3a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
language: python
install:
- pip install -q coverage
python:
- "2.7"
- "3.4"
Expand Down
6 changes: 6 additions & 0 deletions test/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ def assertType(self, s):
def assertNotType(self, s):
self.assertFalse(isinstance(s, FunctionalSequence))

def test_constructor(self):
self.assertRaises(TypeError, lambda: FunctionalSequence(1))

def test_base_sequence(self):
l = []
self.assertType(seq(l))
self.assertNotType(seq(l).sequence)
self.assertType(seq(seq(l)))
self.assertNotType(seq(seq(l)).sequence)
l = seq([])
l.sequence = seq([])
self.assertNotType(l._get_base_sequence())

def test_get_attr(self):
CustomTuple = namedtuple("CustomTuple", 'x y')
Expand Down

0 comments on commit 99aa3a4

Please sign in to comment.