Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ae16aa1

Browse files
Lorak-mmkdkropachev
authored andcommitted
Remove unused assertion functions
1 parent c848ceb commit ae16aa1

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

‎tests/integration/cqlengine/base.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,3 @@ class BaseCassEngTestCase(unittest.TestCase):
4040

4141
def setUp(self):
4242
self.session = get_session()
43-
44-
def assertHasAttr(self, obj, attr):
45-
assert hasattr(obj, attr), "{0} doesn't have attribute: {1}".format(obj, attr)
46-
47-
def assertNotHasAttr(self, obj, attr):
48-
assert not hasattr(obj, attr), "{0} shouldn't have the attribute: {1}".format(obj, attr)
49-
50-
if sys.version_info > (3, 0):
51-
def assertItemsEqual(self, first, second, msg=None):
52-
return self.assertCountEqual(first, second, msg)

‎tests/integration/standard/test_metadata.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,14 +1117,6 @@ def test_export_keyspace_schema(self):
11171117
assert isinstance(keyspace_metadata.as_cql_query(), str)
11181118
cluster.shutdown()
11191119

1120-
def assert_equal_diff(self, received, expected):
1121-
if received != expected:
1122-
diff_string = '\n'.join(difflib.unified_diff(expected.split('\n'),
1123-
received.split('\n'),
1124-
'EXPECTED', 'RECEIVED',
1125-
lineterm=''))
1126-
self.fail(diff_string)
1127-
11281120
@greaterthancass20
11291121
def test_export_keyspace_schema_udts(self):
11301122
"""

‎tests/unit/test_metadata.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ def test_replication_factor_equality(self):
6969

7070
class StrategiesTest(unittest.TestCase):
7171

72-
@classmethod
73-
def setUpClass(cls):
74-
"Hook method for setting up class fixture before running tests in the class."
75-
if not hasattr(cls, 'assertItemsEqual'):
76-
cls.assertItemsEqual = cls.assertCountEqual
77-
7872
def test_replication_strategy(self):
7973
"""
8074
Basic code coverage testing that ensures different ReplicationStrategies

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /