First support for signature validation, done via Exchange contract's isValidSignature() method.
		
			
				
	
	
		
			19 lines
		
	
	
		
			536 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			536 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""Exercise doctests for all of our modules."""
 | 
						|
 | 
						|
from doctest import testmod
 | 
						|
import pkgutil
 | 
						|
 | 
						|
import zero_ex
 | 
						|
 | 
						|
 | 
						|
def test_all_doctests():
 | 
						|
    """Gather zero_ex.* modules and doctest them."""
 | 
						|
    # prefer `black` formatting. pylint: disable=bad-continuation
 | 
						|
    for (importer, modname, _) in pkgutil.walk_packages(
 | 
						|
        path=zero_ex.__path__, prefix="zero_ex."
 | 
						|
    ):
 | 
						|
        module = importer.find_module(modname).load_module(modname)
 | 
						|
        print(module)
 | 
						|
        (failure_count, _) = testmod(module)
 | 
						|
        assert failure_count == 0
 |