コード例 #1
0
 def should_have_300_of_width(self, topic):
     expect(topic['width']).to_equal(300)
コード例 #2
0
 def when_passed_a_complete_url_should_return_the_url_without_modification(
         self, topic):
     expect(topic).to_equal('http://127.0.0.1:8085/complete_url/')
コード例 #3
0
 def should_be_equal_to_the_host_in_out_context(self, topic):
     expect(topic).to_equal('127.0.0.1')
コード例 #4
0
 def should_be_runtime_error(self, topic):
     expect(topic).to_be_an_error_like(RuntimeError)
コード例 #5
0
 def should_return_the_same_path(self, topic):
     expect(topic).to_equal('/')
コード例 #6
0
ファイル: reporting_vows.py プロジェクト: usteiner9/pyvows
 def should_be_pyvowsconsole(self, klass):
     expect(klass['name']).to_equal('tests.bla')
コード例 #7
0
ファイル: reporting_vows.py プロジェクト: usteiner9/pyvows
 def should_contain_lines_uncovered(self, klass):
     expect(klass['uncovered_lines']).to_equal(['2', '3'])
コード例 #8
0
 def should_have_center_halign(self, topic):
     expect(topic['halign']).to_equal('center')
コード例 #9
0
 def should_have_middle_valign(self, topic):
     expect(topic['valign']).to_equal('middle')
コード例 #10
0
 def should_have_flip_horizontal_flag(self, topic):
     expect(topic['horizontal_flip']).to_be_true()
コード例 #11
0
 def should_have_flip_vertical_flag(self, topic):
     expect(topic['vertical_flip']).to_be_true()
コード例 #12
0
 def should_not_have_fitin_flag(self, topic):
     expect(topic['fit_in']).to_be_false()
コード例 #13
0
 def should_have_smart_flag(self, topic):
     expect(topic['smart']).to_be_true()
コード例 #14
0
 def should_have_200_of_height(self, topic):
     expect(topic['height']).to_equal(300)
コード例 #15
0
ファイル: reporting_vows.py プロジェクト: usteiner9/pyvows
 def should_be_overall_99(self, result):
     expect(result['overall']).to_equal(0.99)
コード例 #16
0
 def should_have_crop_left_of_10(self, topic):
     expect(topic['crop']['left']).to_equal(10)
コード例 #17
0
ファイル: reporting_vows.py プロジェクト: usteiner9/pyvows
 def should_be_pyvows_cli(self, klass):
     expect(klass['name']).to_equal('pyvows.cli')
コード例 #18
0
 def should_have_crop_top_of_11(self, topic):
     expect(topic['crop']['top']).to_equal(11)
コード例 #19
0
ファイル: reporting_vows.py プロジェクト: usteiner9/pyvows
 def should_contain_linehate(self, klass):
     expect(klass['line_rate']).to_equal(0.88)
コード例 #20
0
 def should_be_false(self, topic):
     expect(topic).to_be_false()
コード例 #21
0
 def should_be_an_error(self, topic):
     expect(topic).to_be_an_error()
コード例 #22
0
 def should_be_true(self, topic):
     expect(topic).to_be_true()
コード例 #23
0
 def should_have_nice_error_message(self, topic):
     expect(topic).to_have_an_error_message_of(
         'The settings_path argument is required.')
コード例 #24
0
ファイル: reporting_vows.py プロジェクト: usteiner9/pyvows
 def should_be_an_instance_of_class(self, inst):
     expect(inst).to_be_instance_of(VowsDefaultReporter)
コード例 #25
0
 def should_return_an_error(self, topic):
     expect(topic).to_be_an_error_like(ValueError)
コード例 #26
0
ファイル: reporting_vows.py プロジェクト: usteiner9/pyvows
 def should_return_a_dict(self, result):
     expect(result).to_be_instance_of(dict)
コード例 #27
0
 def the_get_url_should_return_a_well_formed_url(self, topic):
     expect(topic).to_equal('http://127.0.0.1:8085/')
コード例 #28
0
ファイル: reporting_vows.py プロジェクト: usteiner9/pyvows
 def should_contain_only_one_package(self, result):
     expect(len(result['classes'])).to_equal(2)
コード例 #29
0
 def should_be_equal_to_the_port_in_out_context(self, topic):
     expect(topic).to_equal(8085)
コード例 #30
0
 def should_not_be_an_empty_dict(self, topic):
     expect(topic).not_to_be_empty()