import subprocess

class Test:

    # check that /etc/hosts has been prepared (see development.rst).
    #
    # FIXME: if this test fails, do not crash, but warn and mark all
    # tests in this class as "pending" before continuing.
    def test_etc_hosts(self):
        assert subprocess.call(["grep", "-q", "adhocracy.embeddee.goo", "/etc/hosts"]) == 0
        assert subprocess.call(["grep", "-q", "adhocracy.embedder.gaa", "/etc/hosts"]) == 0

    # run acceptance test after zooming in on iframe.  (this is mostly
    # interesting as an example on how to do acceptance tests in
    # general; we may want to re-factor /tests/acceptance so that all
    # the code there can be run both in the non-embed case and in any
    # one of many embedding contexts.)
    def test_acceptance_zooming(self, browser_embedder_root):
        with browser_embedder_root.get_iframe('adhocracy_iframe') as iframe:
            element = iframe.find_by_css('.login [name="name"]').first
            assert element != None

    # resize messages from iframe to embedder window.
    def test_resize_message(self, browser_embedder_root):
        print("\n\n\npending!\n\n\n")
        assert True

@@ -33,11 +33,46 @@
     
-# c
+def test_etc_hosts(self):%0A        %22%22%22C
 heck
@@ -132,15 +132,17 @@
 st).
+%22%22%22%0A
 %0A    
-#%0A
     
@@ -210,16 +210,20 @@
 all%0A    
+   
+ 
 # tests 
@@ -272,37 +272,8 @@
 ng.%0A
-    def test_etc_hosts(self):
 %0A   
@@ -458,19 +458,86 @@
  0%0A%0A    
-# r
+def test_acceptance_zooming(self, browser_embedder_root):%0A        %22%22%22R
 un accep
@@ -578,12 +578,24 @@
 ame.
-  (t
+%22%22%22%0A%0A        # T
 his 
@@ -603,22 +603,16 @@
 s mostly
-%0A    #
  interes
@@ -649,24 +649,34 @@
 o acceptance
+%0A        #
  tests in%0A  
@@ -672,22 +672,16 @@
 tests in
-%0A    #
  general
@@ -736,18 +736,22 @@
 that
- all%0A    #
+%0A        # all
  the
@@ -811,16 +811,20 @@
  in any%0A
+    
     # on
@@ -856,71 +856,9 @@
 xts.
-)%0A    def test_acceptance_zooming(self, browser_embedder_root):
+%0A
 %0A   
@@ -910,17 +910,17 @@
 dhocracy
-_
+-
 iframe')
@@ -1046,115 +1046,123 @@
     
-# 
+def test_
 resize
- 
+_
 message
-s from iframe to embedder window.%0A    def test_r
+(self, browser_embedder_root):%0A        %22%22%22R
 esize
-_
+ 
 message
-(self, browser_embedder_root):
+s from iframe to embedder window.%22%22%22
 %0A   

Fix docstring style