def test_markes_test_item_by_test_method_decorator(self): class Test(unittest.TestCase): @tag('include') def test_method(self): pass test_item = Test('test_method') get_tags(test_item) | should | be_equal_to(set(['include']))
def test_markes_test_item_by_test_method_decorator(self): class Test(unittest.TestCase): @tag('include') def test_method(self): pass test_item = Test('test_method') get_tags(test_item) |should| be_equal_to(set(['include']))
def test_combines_tags_from_method_and_class(self): @tag('class') class Test(unittest.TestCase): @tag('method') def test_method(self): pass test_item = Test('test_method') get_tags(test_item) |should| be_equal_to(set(['class', 'method']))
def test_combines_tags_from_method_and_class(self): @tag('class') class Test(unittest.TestCase): @tag('method') def test_method(self): pass test_item = Test('test_method') get_tags(test_item) | should | be_equal_to(set(['class', 'method']))
def test_combines_tags_from_class_and_mixin(self): @tag('mixin') class Mixin(object): pass @tag('class') class Test(Mixin, unittest.TestCase): def test_method(self): pass test_item = Test('test_method') get_tags(test_item) |should| be_equal_to(set(['class', 'mixin']))
def test_combines_tags_from_method_and_superclass(self): @tag('super') class Super(unittest.TestCase): pass class Test(Super): @tag('method') def test_method(self): pass test_item = Test('test_method') get_tags(test_item) |should| be_equal_to(set(['method', 'super']))
def test_combines_tags_from_class_and_mixin(self): @tag('mixin') class Mixin(object): pass @tag('class') class Test(Mixin, unittest.TestCase): def test_method(self): pass test_item = Test('test_method') get_tags(test_item) | should | be_equal_to(set(['class', 'mixin']))
def test_combines_tags_from_method_and_superclass(self): @tag('super') class Super(unittest.TestCase): pass class Test(Super): @tag('method') def test_method(self): pass test_item = Test('test_method') get_tags(test_item) | should | be_equal_to(set(['method', 'super']))
def test_does_not_mix_tags_from_different_classes_with_same_mixin(self): @tag('mixin') class Mixin(object): pass @tag('other') class Other(Mixin, unittest.TestCase): pass @tag('class') class Test(Mixin, unittest.TestCase): @tag('method') def test_method(self): pass test_item = Test('test_method') get_tags(test_item) |should| be_equal_to( set(['class', 'method', 'mixin']))
def test_does_not_mix_tags_from_different_classes_with_same_mixin(self): @tag('mixin') class Mixin(object): pass @tag('other') class Other(Mixin, unittest.TestCase): pass @tag('class') class Test(Mixin, unittest.TestCase): @tag('method') def test_method(self): pass test_item = Test('test_method') get_tags(test_item) | should | be_equal_to( set(['class', 'method', 'mixin']))