devtools/test/unittest_dbfill.py
branchtls-sprint
changeset 1802 d628defebc17
parent 0 b97547f5f1fa
child 1977 606923dff11b
--- a/devtools/test/unittest_dbfill.py	Thu May 14 10:24:56 2009 +0200
+++ b/devtools/test/unittest_dbfill.py	Thu May 14 11:38:40 2009 +0200
@@ -31,7 +31,7 @@
             return getattr(self, '_available_%s_%s' % (etype, attrname))(etype, attrname)
         except AttributeError:
             return None
-    
+
     def _available_Person_firstname(self, etype, attrname):
         return [f.strip() for f in file(osp.join(DATADIR, 'firstnames.txt'))]
 
@@ -51,11 +51,11 @@
         year = date.year
         month = date.month
         day = date.day
-        self.failUnless(day in range(1, 29), '%s not in [0;28]' % day) 
+        self.failUnless(day in range(1, 29), '%s not in [0;28]' % day)
         self.failUnless(month in range(1, 13), '%s not in [1;12]' % month)
         self.failUnless(year in range(2000, 2005),
                         '%s not in [2000;2004]' % year)
-        
+
 
     def test_string(self):
         """test string generation"""
@@ -89,7 +89,7 @@
         for index in range(5):
             date_value = self.person_valgen._generate_value('birthday', index)
             self._check_date(date_value)
-        
+
     def test_phone(self):
         """tests make_tel utility"""
         self.assertEquals(make_tel(22030405), '22 03 04 05')
@@ -102,14 +102,14 @@
                           u'yo')
         self.assertEquals(self.person_valgen._generate_value('description', 12),
                           u'yo')
-                          
-        
+
+
 
 class ConstraintInsertionTC(TestCase):
 
     def test_writeme(self):
         self.skip('Test automatic insertion / Schema Constraints')
-    
+
 
 if __name__ == '__main__':
     unittest_main()