Beispiel #1
0
 def test_registerFeatureUsage(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.registerFeatureUsage(FeatureType.Algorithm, "testv1", True)
     UsageService.setEnabled(True)
     UsageService.registerFeatureUsage(FeatureType.Algorithm, "testv1", True)
     UsageService.registerFeatureUsage(FeatureType.Algorithm, ["testv1","level2feature"], True)
Beispiel #2
0
 def test_getSetEnabled(self):
     UsageService.setEnabled(False)
     self.assertEquals(UsageService.isEnabled(),False)
     UsageService.setEnabled(True)
     self.assertEquals(UsageService.isEnabled(),True)
     UsageService.setEnabled(False)
     self.assertEquals(UsageService.isEnabled(),False)
Beispiel #3
0
 def test_getSetEnabled(self):
     UsageService.setEnabled(False)
     self.assertEqual(UsageService.isEnabled(), False)
     UsageService.setEnabled(True)
     self.assertEqual(UsageService.isEnabled(), True)
     UsageService.setEnabled(False)
     self.assertEqual(UsageService.isEnabled(), False)
Beispiel #4
0
 def test_Flush(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.flush()
Beispiel #5
0
 def test_registerFeatureUsage(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.registerFeatureUsage("Algorithm","Test.v1",True)
Beispiel #6
0
 def test_registerStartup(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.registerStartup()
Beispiel #7
0
 def test_setInterval(self):
     UsageService.setEnabled(False)
     UsageService.setInterval(60)
Beispiel #8
0
 def test_Flush(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.flush()
Beispiel #9
0
 def test_registerStartup(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.registerStartup()
Beispiel #10
0
 def test_setInterval(self):
     UsageService.setEnabled(False)
     UsageService.setInterval(60)
Beispiel #11
0
 def test_registerFeatureUsage(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.registerFeatureUsage("Algorithm","Test.v1",True)