Project

General

Profile

« Previous | Next » 

Revision 085c9956

Added by Eric Helms about 11 years ago

Pulp2.1 - Updates to how consumer group content tests are handled
to test them properly.

View differences:

test/resources/event_notifier_test.rb
assert_equal 201, response.code
end
def test_list
response = @resource.list()
assert_equal 200, response.code
refute_empty response
end
end
class TestEventNotifierDelete < MiniTest::Unit::TestCase
class TestEventNotifier < MiniTest::Unit::TestCase
def setup
VCR.insert_cassette('event_notifier_remove')
......
VCR.eject_cassette
end
def test_list
response = @resource.list()
assert_equal 200, response.code
refute_empty response
end
def test_remove
response = @resource.delete(@@notifier_id)
assert_equal 200, response.code
assert_equal 200, response.code
end
end

Also available in: Unified diff