diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-03-01 00:07:42 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-03-01 00:07:42 +0000 |
| commit | b0bbdc744d17565ae957ed9cad685c2dc47a3d84 (patch) | |
| tree | 58bebcadaf689113b128aa6e5a0f9f83fd426af7 /tests/regressiontests | |
| parent | 811163d24e66d9c1ab9dbb6f69aa368d35a13df8 (diff) | |
Merged to [4656]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4657 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
| -rw-r--r-- | tests/regressiontests/bug639/tests.py | 9 | ||||
| -rw-r--r-- | tests/regressiontests/dateformat/tests.py | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/tests/regressiontests/bug639/tests.py b/tests/regressiontests/bug639/tests.py index c05ef120e1..f9596d06cb 100644 --- a/tests/regressiontests/bug639/tests.py +++ b/tests/regressiontests/bug639/tests.py @@ -32,4 +32,11 @@ class Bug639Test(unittest.TestCase): p = manip.save(qd) # Check the savecount stored on the object (see the model) - self.assertEqual(p._savecount, 1)
\ No newline at end of file + self.assertEqual(p._savecount, 1) + + def tearDown(self): + """ + Make sure to delete the "uploaded" file to avoid clogging /tmp. + """ + p = Photo.objects.get() + os.unlink(p.get_image_filename())
\ No newline at end of file diff --git a/tests/regressiontests/dateformat/tests.py b/tests/regressiontests/dateformat/tests.py index 6e28759a92..f9f84145c5 100644 --- a/tests/regressiontests/dateformat/tests.py +++ b/tests/regressiontests/dateformat/tests.py @@ -17,6 +17,8 @@ r""" '07' >>> format(my_birthday, 'M') 'Jul' +>>> format(my_birthday, 'b') +'jul' >>> format(my_birthday, 'n') '7' >>> format(my_birthday, 'N') |
