diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-03-03 18:34:54 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-03-03 21:38:46 +0100 |
commit | aecf1b73d9c9d653220b6d8825d5eacd2cb6bd74 (patch) | |
tree | d55c145eff78ccc8b38e766508af0fe04cb51f04 | |
parent | aa900c9f00d6777b57440e660e24df1a15f2f20e (diff) | |
download | factory-boy-aecf1b73d9c9d653220b6d8825d5eacd2cb6bd74.tar factory-boy-aecf1b73d9c9d653220b6d8825d5eacd2cb6bd74.tar.gz |
Tests: improve deprecation warning detection in test_base.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
-rw-r--r-- | tests/test_base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_base.py b/tests/test_base.py index ba88d3b..c16d536 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -209,6 +209,7 @@ class FactoryCreationTestCase(unittest.TestCase): pass self.assertEqual(1, len(w)) + self.assertIn('discovery', str(w[0].message)) self.assertIn('deprecated', str(w[0].message)) def testStub(self): |