def test_decompose_bases():
 from .. import cgs
 from ...constants import e
 d = e.esu.unit.decompose(bases=cgs.bases)
 assert (d._bases == [u.cm, u.g, u.s])
 assert (d._powers == [Fraction(3, 2), 0.5, (-1)])
 assert (d._scale == 1.0)

def test_decompose_bases ( ) : from . . import cgs from ... constants import e d = e . esu . unit . decompose ( bases = cgs . bases ) assert ( d . _bases == [ u . cm , u . g , u . s ] ) assert ( d . _powers == [ Fraction ( 3 , 2 ) , 0.5 , ( - 1 ) ] ) assert ( d . _scale == 1.0 )
from issue #576 .