Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 07eaaa1

Browse files
author
Tom Galloway
committed
Another profile test.
1 parent 54df011 commit 07eaaa1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

market/tests/test_profile.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ def test_MarketProfile_get_success(self):
3030
self.assertEqual('test_name', p.name)
3131
self.assertEqual(2, p.location)
3232
self.assertEqual('hello world', p.about)
33+
34+
def test_MarketProfile_remove_field_success(self):
35+
p = Profile(self.db)
36+
p.remove_field("about")
37+
user = p.get()
38+
self.assertEqual('test_name', user.name)
39+
self.assertEqual('', user.about)

0 commit comments

Comments
 (0)