<s> from assertpy import assert_that , fail <EOL> class TestDescription ( object ) : <EOL> def test_constructor ( self ) : <EOL> try : <EOL> assert_that ( <NUM_LIT:1> , '<STR_LIT>' ) . is_equal_to ( <NUM_LIT:2> ) <EOL> fail ( '<STR_LIT>' ) <EOL> except AssertionError as ex : <EOL> assert_that ( str ( ex ) ) . is_equal_to ( '<STR_LIT>' ) <EOL> def test_described_as ( self ) : <EOL> try : <EOL> assert_that ( <NUM_LIT:1> ) . described_as ( '<STR_LIT>' ) . is_equal_to ( <NUM_LIT:2> ) <EOL> fail ( '<STR_LIT>' ) <EOL> except AssertionError as ex : <EOL> assert_that ( str ( ex ) ) . is_equal_to ( '<STR_LIT>' ) <EOL> def test_described_as_double ( self ) : <EOL> try : <EOL> assert_that ( <NUM_LIT:1> ) . described_as ( '<STR_LIT>' ) . described_as ( '<STR_LIT>' ) . is_equal_to ( <NUM_LIT:2> ) <EOL> fail ( '<STR_LIT>' ) <EOL> except AssertionError as ex : <EOL> assert_that ( str ( ex ) ) . is_equal_to ( '<STR_LIT>' ) <EOL> def test_described_as_chained ( self ) : <EOL> try : <EOL> assert_that ( <NUM_LIT:1> ) . described_as ( '<STR_LIT>' ) . is_equal_to ( <NUM_LIT:1> ) . described_as ( '<STR_LIT>' ) . is_equal_to ( <NUM_LIT:1> ) . described_as ( '<STR_LIT>' ) . is_equal_to ( <NUM_LIT:2> ) <EOL> fail ( '<STR_LIT>' ) <EOL> except AssertionError as ex : <EOL> assert_that ( str ( ex ) ) . is_equal_to ( '<STR_LIT>' ) </s>
