Ver Fonte

docs: fix error in code block

Mikael Koli há 4 anos atrás
pai
commit
bfd52511ef
1 ficheiros alterados com 2 adições e 4 exclusões
  1. 2 4
      docs/tutorials/testing.rst

+ 2 - 4
docs/tutorials/testing.rst

@@ -105,8 +105,7 @@ Then to use this mock:
     )
     )
 
 
     msgs = MockServer.messages
     msgs = MockServer.messages
-    assert msgs == 
-    ["""from: me@example.com
+    assert msgs == ["""from: me@example.com
     subject: Some news
     subject: Some news
     to: you@example.com
     to: you@example.com
     Content-Type: text/plain; charset="utf-8"
     Content-Type: text/plain; charset="utf-8"
@@ -153,8 +152,7 @@ Then to use this class:
     )
     )
 
 
     msgs = email.messages
     msgs = email.messages
-    assert msgs == 
-    ["""from: me@example.com
+    assert msgs == ["""from: me@example.com
     subject: Some news
     subject: Some news
     to: you@example.com
     to: you@example.com
     Content-Type: text/plain; charset="utf-8"
     Content-Type: text/plain; charset="utf-8"