Example #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)
Example #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)
Example #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)
Example #4
0
 def test_Flush(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.flush()
Example #5
0
 def test_registerFeatureUsage(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.registerFeatureUsage("Algorithm","Test.v1",True)
Example #6
0
 def test_registerStartup(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.registerStartup()
Example #7
0
 def test_setInterval(self):
     UsageService.setEnabled(False)
     UsageService.setInterval(60)
Example #8
0
 def test_Flush(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.flush()
Example #9
0
 def test_registerStartup(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.registerStartup()
Example #10
0
 def test_setInterval(self):
     UsageService.setEnabled(False)
     UsageService.setInterval(60)
Example #11
0
 def test_registerFeatureUsage(self):
     UsageService.setEnabled(False)
     #this will do nothing as it is disabled
     UsageService.registerFeatureUsage("Algorithm","Test.v1",True)