Exemple #1
0
    def test_are_attributes_valid__returns_false(self):
        """ Test that invalid attributes returns False. """

        self.assertFalse(validator.are_attributes_valid('key:value'))
        self.assertFalse(validator.are_attributes_valid(['key', 'value']))
        self.assertFalse(validator.are_attributes_valid(42))
Exemple #2
0
  def test_are_attributes_valid__returns_false(self):
    """ Test that invalid attributes returns False. """

    self.assertFalse(validator.are_attributes_valid('key:value'))
    self.assertFalse(validator.are_attributes_valid(['key', 'value']))
    self.assertFalse(validator.are_attributes_valid(42))
Exemple #3
0
    def test_are_attributes_valid__returns_true(self):
        """ Test that valid attributes returns True. """

        self.assertTrue(validator.are_attributes_valid({'key': 'value'}))
Exemple #4
0
  def test_are_attributes_valid__returns_true(self):
    """ Test that valid attributes returns True. """

    self.assertTrue(validator.are_attributes_valid({'key': 'value'}))