"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cloudkitty/tests/test_hacking.py" between
cloudkitty-16.0.0.tar.gz and cloudkitty-17.0.0.tar.gz

About: OpenStack CloudKitty provides Rating-as-a-Service for OpenStack.
The "Zed" series (latest release).

test_hacking.py  (cloudkitty-16.0.0):test_hacking.py  (cloudkitty-17.0.0)
skipping to change at line 305 skipping to change at line 305
"assertIsNone(None)")))) "assertIsNone(None)"))))
self.assertEqual(1, len(list(checks.validate_assertIsNone( self.assertEqual(1, len(list(checks.validate_assertIsNone(
"assertEqual(None, %s)" % test_value)))) "assertEqual(None, %s)" % test_value))))
def test_no_log_warn_check(self): def test_no_log_warn_check(self):
self.assertEqual(0, len(list(checks.no_log_warn_check( self.assertEqual(0, len(list(checks.no_log_warn_check(
"LOG.warning('This should not trigger LOG.warn" "LOG.warning('This should not trigger LOG.warn"
"hacking check.')")))) "hacking check.')"))))
self.assertEqual(1, len(list(checks.no_log_warn_check( self.assertEqual(1, len(list(checks.no_log_warn_check(
"LOG.warn('We should not use LOG.wan')")))) "LOG.warn('We should not use LOG.wan')"))))
def test_oslo_assert_raises_regexp(self):
code = """
"invalid literal for.*XYZ'$",
self._assert_has_errors(code, checks.assert_raises_regexp,
expected_errors=[(1, 0, "C322")])
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)