Make tests for simple-class actually run
This commit is contained in:
parent
e1fa525307
commit
649b273c82
|
@ -0,0 +1,19 @@
|
|||
from .utils import simple_class
|
||||
|
||||
|
||||
class TestSimpleClass:
|
||||
"""
|
||||
Tests for the testing helper function `make_class`.
|
||||
"""
|
||||
|
||||
def test_returns_class(self):
|
||||
"""
|
||||
Returns a class object.
|
||||
"""
|
||||
assert type is simple_class().__class__
|
||||
|
||||
def test_returns_distinct_classes(self):
|
||||
"""
|
||||
Each call returns a completely new class.
|
||||
"""
|
||||
assert simple_class() is not simple_class()
|
|
@ -65,21 +65,3 @@ def simple_attr(
|
|||
kw_only=kw_only,
|
||||
inherited=inherited,
|
||||
)
|
||||
|
||||
|
||||
class TestSimpleClass:
|
||||
"""
|
||||
Tests for the testing helper function `make_class`.
|
||||
"""
|
||||
|
||||
def test_returns_class(self):
|
||||
"""
|
||||
Returns a class object.
|
||||
"""
|
||||
assert type is simple_class().__class__
|
||||
|
||||
def returns_distinct_classes(self):
|
||||
"""
|
||||
Each call returns a completely new class.
|
||||
"""
|
||||
assert simple_class() is not simple_class()
|
||||
|
|
Loading…
Reference in New Issue