Fixes in tests and add check_login function to admin cntroller
This commit is contained in:
parent
b41461cc2c
commit
da9a37a406
10 changed files with 33 additions and 9 deletions
|
|
@ -28,4 +28,5 @@ class TestFieldMethods(unittest.TestCase):
|
|||
|
||||
self.assertEqual(json_encoded, '["trick", "mytuquito", "25"]')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -66,4 +66,7 @@ class TestFieldMethods(unittest.TestCase):
|
|||
self.assertEqual(value, '00:24:21')
|
||||
|
||||
print(datetime.local_to_utc('20121221232421', tz))
|
||||
"""
|
||||
"""
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -54,6 +54,5 @@ class TestFieldMethods(unittest.TestCase):
|
|||
|
||||
self.assertEqual(value_two, value_real)
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -57,3 +57,5 @@ class TestFieldMethods(unittest.TestCase):
|
|||
self.assertFalse(emailfield.error)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -36,4 +36,6 @@ class TestFieldMethods(unittest.TestCase):
|
|||
|
||||
#self.assertEqual(phrase, 'this---is-a-crap-phrase-o---f-oh-yeah--')
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -63,3 +63,6 @@ class TestImageFieldMethods(unittest.TestCase):
|
|||
self.assertEqual(value, "injection_\\'")"""
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -20,3 +20,6 @@ class TestFieldMethods(unittest.TestCase):
|
|||
self.assertTrue( s.send(config.portal_email, [config.email_test], 'This is a test', 'A message for test a simple email method in <b>html</b> and attachments', content_type='html', attachments=['tests/images/image.jpg']) )
|
||||
|
||||
#s.quit()
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
|
|
@ -10,4 +10,6 @@ class TestFieldMethods(unittest.TestCase):
|
|||
|
||||
self.assertEqual(phrase, 'this---is-a-crap-phrase-o---f-oh-yeah--')
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue