Exemplo n.º 1
0
 def test_check_mod_times_change(self):
     from plone.reload.code import check_mod_times
     from plone.reload.code import MOD_TIMES
     our_package = os.path.abspath(
         os.path.join(TESTS, os.pardir, '__init__.pyc'))
     our_entry = MOD_TIMES[our_package]
     try:
         MOD_TIMES[our_package] = (our_entry[0] - 10, our_entry[1])
         self.assertEqual(len(check_mod_times()), 1)
     finally:
         MOD_TIMES[our_package] = our_entry
Exemplo n.º 2
0
 def test_check_mod_times_change(self):
     from plone.reload.code import check_mod_times
     from plone.reload.code import MOD_TIMES
     our_package = os.path.abspath(
         os.path.join(TESTS, os.pardir, '__init__.pyc'))
     our_entry = MOD_TIMES[our_package]
     try:
         MOD_TIMES[our_package] = (our_entry[0] - 10, our_entry[1])
         self.assertEqual(len(check_mod_times()), 1)
     finally:
         MOD_TIMES[our_package] = our_entry
Exemplo n.º 3
0
 def test_check_mod_times(self):
     from plone.reload.code import check_mod_times
     self.assertEqual(len(check_mod_times()), 0)
Exemplo n.º 4
0
 def test_check_mod_times(self):
     from plone.reload.code import check_mod_times
     self.assertEqual(len(check_mod_times()), 0)