Skip to content

Commit

Permalink
Failing tests re #109
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Jan 14, 2014
1 parent bd6b18c commit a0dd000
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/collection.py
Expand Up @@ -181,6 +181,17 @@ def raises_ValueError_if_task_added_mirrors_subcollection_name(self):
self.c.add_collection(Collection('sub'))
self.c.add_task(_mytask, 'sub')

def allows_specifying_task_defaultness(self):
self.c.add_task(_mytask, default=True)
eq_(self.c.default, '_mytask')

def specifying_default_False_overrides_task_setting(self):
@task(default=True)
def its_me():
pass
self.c.add_task(its_me, default=False)
eq_(self.c.default, None)

class add_collection:
def setup(self):
self.c = Collection()
Expand Down

0 comments on commit a0dd000

Please sign in to comment.