Exemple #1
0
 def test_hello_world(self):
     asserts.assert_equal(self.user_params["icecream"], 42)
     asserts.assert_equal(self.user_params["extra_param"], "haha")
     self.log.info(
         "This is a bare minimal test to make sure the basic MOBLY"
         "test flow works.")
     asserts.explicit_pass("Hello World")
Exemple #2
0
 def test_hello_world(self):
   asserts.assert_equal(self.user_params['icecream'], 42)
   asserts.assert_equal(self.user_params['extra_param'], 'haha')
   logging.info('This is a bare minimal test to make sure the basic MOBLY'
          ' test flow works.')
   asserts.explicit_pass(
     'Hello World',
     # Use a unicode string here to make sure the full log pipeline
     # works with unicode.
     extras=u'\u2022')
Exemple #3
0
 def logic(self, setting, arg, special_arg=None):
     asserts.assert_true(setting in itrs, (
         "%s is not in acceptable settings range %s") %
                         (setting, itrs))
     asserts.assert_true(arg == static_arg,
                         "Expected %s, got %s" % (static_arg, arg))
     asserts.assert_true(arg == static_arg, "Expected %s, got %s" %
                         (static_kwarg, special_arg))
     if setting == "pass":
         asserts.explicit_pass(
             MSG_EXPECTED_EXCEPTION, extras=MOCK_EXTRA)
     elif setting == "fail":
         asserts.fail(MSG_EXPECTED_EXCEPTION, extras=MOCK_EXTRA)
     elif setting == "skip":
         asserts.skip(MSG_EXPECTED_EXCEPTION, extras=MOCK_EXTRA)
Exemple #4
0
 def test_func(self):
     asserts.explicit_pass(
         MSG_EXPECTED_EXCEPTION, extras=MOCK_EXTRA)
     never_call()
Exemple #5
0
 def test_something(self):
     asserts.explicit_pass(
         MSG_EXPECTED_EXCEPTION, extras=MOCK_EXTRA)
Exemple #6
0
 def test_something(self):
     asserts.explicit_pass("Test Passed!")
Exemple #7
0
 def test_something(self):
     asserts.explicit_pass(MSG_EXPECTED_EXCEPTION)