示例#1
0
def test_find_function(test_input):
    """Test that the find function fails as expected"""
    assert len(con.find(test_input)) == 0
示例#2
0
def test_find_function(this_key):
    """Test that the find function works for all the keys"""
    assert len(con.find(this_key)) >= 1
示例#3
0
def test_find_all():
    assert isinstance(con.find(), list)
    assert len(con.find()) == 34
示例#4
0
def test_find_function3(test_input):
    """
    Test that the find function fails as expected.
    """
    assert len(con.find(test_input)) == 0
示例#5
0
def test_find_function2(this_key):
    """
    Test that the find function works for all the keys.
    """
    assert len(con.find(this_key)) >= 1
示例#6
0
from sunpy.sun import constants
print(constants.mass)
# Verify the average density of the Sun and convert to cgs
(constants.mass/constants.volume).cgs
# Search for the age of the Sun
constants.find("age")
constants.value('age'), constants.unit('age')