aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb/tests/test_model.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-12-05 16:08:03 -0500
committerAaron Bentley <abentley@panoramicfeedback.com>2006-12-05 16:08:03 -0500
commitea15510609d1516000daa8a685731df5d549bfba (patch)
tree123012cb2e0d0d31c3b32977b870a08966859835 /Bugs-Everywhere-Web/beweb/tests/test_model.py
parent43fe901fa3f239b57e2343fbca322f2f5a91320f (diff)
downloadbugseverywhere-ea15510609d1516000daa8a685731df5d549bfba.tar.gz
Mostly upgrade to turbogears 1.0b1
Diffstat (limited to 'Bugs-Everywhere-Web/beweb/tests/test_model.py')
-rw-r--r--Bugs-Everywhere-Web/beweb/tests/test_model.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/Bugs-Everywhere-Web/beweb/tests/test_model.py b/Bugs-Everywhere-Web/beweb/tests/test_model.py
index 5346f8b..74c4e83 100644
--- a/Bugs-Everywhere-Web/beweb/tests/test_model.py
+++ b/Bugs-Everywhere-Web/beweb/tests/test_model.py
@@ -4,21 +4,20 @@
# choice for testing, because you can use an in-memory database
# which is very fast.
-from turbogears import testutil
-#from beweb.model import YourDataClass
-#from turbogears.identity.soprovider import TG_User
+from turbogears import testutil, database
+# from beweb.model import YourDataClass, User
# database.set_db_uri("sqlite:///:memory:")
-# class testTG_User(testutil.DBTest):
+# class TestUser(testutil.DBTest):
# def get_model(self):
-# return TG_User
+# return User
#
# def test_creation(self):
# "Object creation should set the name"
-# obj = TG_User(userId = "creosote",
-# emailAddress = "spam@python.not",
-# displayName = "Mr Creosote",
+# obj = User(user_name = "creosote",
+# email_address = "spam@python.not",
+# display_name = "Mr Creosote",
# password = "Wafer-thin Mint")
-# assert obj.displayName == "Mr Creosote"
+# assert obj.display_name == "Mr Creosote"