summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-03 18:34:54 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-03 21:38:46 +0100
commitaecf1b73d9c9d653220b6d8825d5eacd2cb6bd74 (patch)
treed55c145eff78ccc8b38e766508af0fe04cb51f04
parentaa900c9f00d6777b57440e660e24df1a15f2f20e (diff)
downloadfactory-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.py1
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):