コード例 #1
0
 def setUp(self):
     self.user = User.objects.get(username='******')
     try:
         install_episode()
     except FedoraConnectionException:
         # if for some reason, episode is already in the repo, purge it and
         # add it again.  It needs to be "fresh".
         purge_episode()
         install_episode()
コード例 #2
0
ファイル: tests.py プロジェクト: onelson/Ringling-TV
 def setUp(self):
     self.user = User.objects.get(username='******')
     try:
         install_episode()
     except FedoraConnectionException:
         # if for some reason, episode is already in the repo, purge it and
         # add it again.  It needs to be "fresh". 
         purge_episode()
         install_episode()
コード例 #3
0
 def testInstallPurgeEpisodeContentModel(self):
     # episode is installed in setup, so it should fail to add it again
     self.assertRaises(FedoraConnectionException, install_episode)
     purge_episode()
     # removing it twice should raise the same exception
     self.assertRaises(FedoraConnectionException, purge_episode)
     # when not already in the system, install should work
     install_episode()
     client = get_client()
     client.getObject(pp('EPISODE'))  # as should get
コード例 #4
0
ファイル: tests.py プロジェクト: onelson/Ringling-TV
 def testInstallPurgeEpisodeContentModel(self):
     # episode is installed in setup, so it should fail to add it again
     self.assertRaises(FedoraConnectionException, install_episode)
     purge_episode()
     # removing it twice should raise the same exception
     self.assertRaises(FedoraConnectionException, purge_episode)
     # when not already in the system, install should work
     install_episode()
     client = get_client()
     client.getObject(pp('EPISODE')) # as should get
コード例 #5
0
ファイル: remove-cmodels.py プロジェクト: onelson/Ringling-TV
 def handle_noargs(self, *args, **kwargs):
     try:
         purge_episode()
     except Exception, err:
         print >> sys.stderr, err
コード例 #6
0
 def tearDown(self):
     try:
         purge_episode()
     except:
         pass
コード例 #7
0
ファイル: tests.py プロジェクト: onelson/Ringling-TV
 def tearDown(self):
     try:
         purge_episode()
     except: pass
コード例 #8
0
ファイル: remove-cmodels.py プロジェクト: Saddek/Ringling-TV
 def handle_noargs(self, *args, **kwargs):
     try:
         purge_episode()
     except Exception, err:
         print >> sys.stderr, err