@@ -30,34 +30,34 @@ class TestFeatureQuoteInit(unittest.TestCase):
3030
3131 def test_default_environments (self ):
3232 feature = FeatureQuote ()
33- self .assertIn ('quote' , feature .quote_environments )
34- self .assertIn ('address' , feature .quote_environments )
35- self .assertIn ('blockquote' , feature .quote_environments )
33+ self .assertTrue ('quote' in feature .quote_environments )
34+ self .assertTrue ('address' in feature .quote_environments )
35+ self .assertTrue ('blockquote' in feature .quote_environments )
3636
3737 def test_custom_environments (self ):
3838 feature = FeatureQuote (quote_environments = {
3939 'myquote' : {
4040 'enabled_quote_sections' : ['text' , 'attributed' ],
4141 },
4242 })
43- self .assertIn ('myquote' , feature .quote_environments )
44- self .assertNotIn ('quote' , feature .quote_environments )
43+ self .assertTrue ('myquote' in feature .quote_environments )
44+ self .assertTrue ('quote' not in feature .quote_environments )
4545
4646 def test_latex_context_definitions (self ):
4747 feature = FeatureQuote ()
4848 defs = feature .add_latex_context_definitions ()
49- self .assertIn ('environments' , defs )
49+ self .assertTrue ('environments' in defs )
5050 env_names = [e .environmentname for e in defs ['environments' ]]
51- self .assertIn ('quote' , env_names )
52- self .assertIn ('address' , env_names )
53- self .assertIn ('blockquote' , env_names )
51+ self .assertTrue ('quote' in env_names )
52+ self .assertTrue ('address' in env_names )
53+ self .assertTrue ('blockquote' in env_names )
5454
5555 def test_mk_quote_environment_spec_from_dict (self ):
5656 feature = FeatureQuote ()
5757 spec = feature ._mk_quote_environment_spec ('myenv' , {
5858 'enabled_quote_sections' : ['text' ],
5959 })
60- self .assertIsInstance ( spec , QuoteEnvironment )
60+ self .assertTrue ( isinstance ( spec , QuoteEnvironment ) )
6161 self .assertEqual (spec .environmentname , 'myenv' )
6262 self .assertEqual (spec .enabled_quote_sections , ['text' ])
6363
0 commit comments